package ui.changeweeklydetails;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.border.LineBorder;
import java.awt.Color;

public class ChangeWeeklyDetailsDialog2 extends JDialog {

	private final JPanel contentPanel = new JPanel();

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			ChangeWeeklyDetailsDialog2 dialog = new ChangeWeeklyDetailsDialog2();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public ChangeWeeklyDetailsDialog2() {
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setLayout(new FlowLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		{
			JPanel panel = new JPanel();
			panel.setBorder(new LineBorder(new Color(0, 0, 0)));
			contentPanel.add(panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{0.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel mondayPanel = new TimePanel();
				GridBagConstraints gbc_mondayPanel = new GridBagConstraints();
				gbc_mondayPanel.insets = new Insets(0, 0, 5, 0);
				gbc_mondayPanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_mondayPanel.gridx = 0;
				panel.add(mondayPanel, gbc_mondayPanel);
			}
			{
				JLabel lblNewLabel = new JLabel("Monday");
				GridBagConstraints gbc_lblNewLabel = new GridBagConstraints();
				gbc_lblNewLabel.gridx = 0;
				gbc_lblNewLabel.gridy = 1;
				panel.add(lblNewLabel, gbc_lblNewLabel);
			}
		}
		{
			JPanel panel = new JPanel();
			panel.setBorder(new LineBorder(new Color(0, 0, 0)));
			contentPanel.add(panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{0.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel tuesdayPanel = new TimePanel();
				GridBagConstraints gbc_tuesdayPanel = new GridBagConstraints();
				gbc_tuesdayPanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_tuesdayPanel.insets = new Insets(0, 0, 5, 0);
				gbc_tuesdayPanel.gridx = 0;
				gbc_tuesdayPanel.gridy = 0;
				panel.add(tuesdayPanel, gbc_tuesdayPanel);
			}
			{
				JLabel lblTuesday = new JLabel("Tuesday");
				GridBagConstraints gbc_lblTuesday = new GridBagConstraints();
				gbc_lblTuesday.gridx = 0;
				gbc_lblTuesday.gridy = 1;
				panel.add(lblTuesday, gbc_lblTuesday);
			}
		}
		{
			JPanel panel = new JPanel();
			panel.setBorder(new LineBorder(new Color(0, 0, 0)));
			contentPanel.add(panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{0.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel wednesdayPanel = new TimePanel();
				GridBagConstraints gbc_wednesdayPanel = new GridBagConstraints();
				gbc_wednesdayPanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_wednesdayPanel.insets = new Insets(0, 0, 5, 0);
				gbc_wednesdayPanel.gridx = 0;
				gbc_wednesdayPanel.gridy = 0;
				panel.add(wednesdayPanel, gbc_wednesdayPanel);
			}
			{
				JLabel lblWednesday = new JLabel("Wednesday");
				GridBagConstraints gbc_lblWednesday = new GridBagConstraints();
				gbc_lblWednesday.gridx = 0;
				gbc_lblWednesday.gridy = 1;
				panel.add(lblWednesday, gbc_lblWednesday);
			}
		}
		{
			JPanel panel = new JPanel();
			panel.setBorder(new LineBorder(new Color(0, 0, 0)));
			contentPanel.add(panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{0.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel thursdayPanel = new TimePanel();
				GridBagConstraints gbc_thursdayPanel = new GridBagConstraints();
				gbc_thursdayPanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_thursdayPanel.insets = new Insets(0, 0, 5, 0);
				gbc_thursdayPanel.gridx = 0;
				gbc_thursdayPanel.gridy = 0;
				panel.add(thursdayPanel, gbc_thursdayPanel);
			}
			{
				JLabel lblThursday = new JLabel("Thursday");
				GridBagConstraints gbc_lblThursday = new GridBagConstraints();
				gbc_lblThursday.gridx = 0;
				gbc_lblThursday.gridy = 1;
				panel.add(lblThursday, gbc_lblThursday);
			}
		}
		{
			JPanel panel = new JPanel();
			panel.setBorder(new LineBorder(new Color(0, 0, 0)));
			contentPanel.add(panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{0.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel fridayPanel = new TimePanel();
				GridBagConstraints gbc_fridayPanel = new GridBagConstraints();
				gbc_fridayPanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_fridayPanel.insets = new Insets(0, 0, 5, 0);
				gbc_fridayPanel.gridx = 0;
				gbc_fridayPanel.gridy = 0;
				panel.add(fridayPanel, gbc_fridayPanel);
			}
			{
				JLabel lblFriday = new JLabel("Friday");
				GridBagConstraints gbc_lblFriday = new GridBagConstraints();
				gbc_lblFriday.gridx = 0;
				gbc_lblFriday.gridy = 1;
				panel.add(lblFriday, gbc_lblFriday);
			}
		}
		{
			JPanel panel = new JPanel();
			panel.setBorder(new LineBorder(new Color(0, 0, 0)));
			contentPanel.add(panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{0.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel saturdayPanel = new TimePanel();
				GridBagConstraints gbc_saturdayPanel = new GridBagConstraints();
				gbc_saturdayPanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_saturdayPanel.insets = new Insets(0, 0, 5, 0);
				gbc_saturdayPanel.gridx = 0;
				gbc_saturdayPanel.gridy = 0;
				panel.add(saturdayPanel, gbc_saturdayPanel);
			}
			{
				JLabel lblSaturday = new JLabel("Saturday");
				GridBagConstraints gbc_lblSaturday = new GridBagConstraints();
				gbc_lblSaturday.gridx = 0;
				gbc_lblSaturday.gridy = 1;
				panel.add(lblSaturday, gbc_lblSaturday);
			}
		}
		{
			JPanel panel = new JPanel();
			panel.setBorder(new LineBorder(new Color(0, 0, 0)));
			contentPanel.add(panel);
			GridBagLayout gbl_panel = new GridBagLayout();
			gbl_panel.columnWidths = new int[]{80, 0};
			gbl_panel.rowHeights = new int[]{32, 0, 0};
			gbl_panel.columnWeights = new double[]{0.0, Double.MIN_VALUE};
			gbl_panel.rowWeights = new double[]{0.0, 0.0, Double.MIN_VALUE};
			panel.setLayout(gbl_panel);
			{
				TimePanel sundayPanel = new TimePanel();
				GridBagConstraints gbc_sundayPanel = new GridBagConstraints();
				gbc_sundayPanel.anchor = GridBagConstraints.NORTHWEST;
				gbc_sundayPanel.insets = new Insets(0, 0, 5, 0);
				gbc_sundayPanel.gridx = 0;
				gbc_sundayPanel.gridy = 0;
				panel.add(sundayPanel, gbc_sundayPanel);
			}
			{
				JLabel lblSunday = new JLabel("Sunday");
				GridBagConstraints gbc_lblSunday = new GridBagConstraints();
				gbc_lblSunday.gridx = 0;
				gbc_lblSunday.gridy = 1;
				panel.add(lblSunday, gbc_lblSunday);
			}
		}
		{
			JPanel buttonPane = new JPanel();
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(buttonPane, BorderLayout.SOUTH);
			{
				JButton okButton = new JButton("OK");
				okButton.setActionCommand("OK");
				buttonPane.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}
			{
				JButton cancelButton = new JButton("Cancel");
				cancelButton.setActionCommand("Cancel");
				buttonPane.add(cancelButton);
			}
		}
		this.pack();
	}

}
